<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the destroySharedInstance method from the TRTCCloud class, for the Dart programming language.">
  <title>destroySharedInstance method - TRTCCloud class - trtc_cloud library - Dart API</title>


  
  <link rel="preconnect" href="https://fonts.gstatic.com">
  <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  
  <link rel="stylesheet" href="../../static-assets/github.css?v1">
  <link rel="stylesheet" href="../../static-assets/styles.css?v1">
  <link rel="icon" href="../../static-assets/favicon.png?v1">

  
</head>


<body data-base-href="../../"
      data-using-base-href="false">

<div id="overlay-under-drawer"></div>

<header id="title">
  <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="../../index.html">tencent_trtc_cloud</a></li>
    <li><a href="../../trtc_cloud/trtc_cloud-library.html">trtc_cloud</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud-class.html">TRTCCloud</a></li>
    <li class="self-crumb">destroySharedInstance method</li>
  </ol>
  <div class="self-name">destroySharedInstance</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<main>


  <div id="dartdoc-main-content" class="main-content">
      <div>
<h1><span class="kind-method">destroySharedInstance</span> method 
    <a href="https://dart.dev/null-safety" class="feature feature-null-safety" title="Supports the null safety language feature.">Null safety</a>
</h1></div>

    <section class="multi-line-signature">
      

<span class="returntype"><a href="https://api.flutter.dev/flutter/dart-async/Future-class.html">Future</a><span class="signature">&lt;<wbr><span class="type-parameter">void</span>&gt;</span></span>
<span class="name ">destroySharedInstance</span>(<wbr>)

      

    </section>
    
<section class="desc markdown">
  <p>销毁 TRTCCloud 单例。</p>
</section>


    
<section class="summary source-code" id="source">
  <h2><span>Implementation</span></h2>
  <pre class="language-dart"><code class="language-dart">static Future&lt;void&gt; destroySharedInstance() async {
  await _channel.invokeMethod(&#39;destroySharedInstance&#39;);
  _trtcCloud = null;
}</code></pre>
</section>


  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left">
    <header id="header-search-sidebar" class="hidden-l">
  <form class="search-sidebar" role="search">
    <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
  <li><a href="../../index.html">tencent_trtc_cloud</a></li>
  <li><a href="../../trtc_cloud/trtc_cloud-library.html">trtc_cloud</a></li>
  <li><a href="../../trtc_cloud/TRTCCloud-class.html">TRTCCloud</a></li>
  <li class="self-crumb">destroySharedInstance method</li>
</ol>


    <h5>TRTCCloud class</h5>
    <ol>

    <li class="section-title"><a href="../../trtc_cloud/TRTCCloud-class.html#constructors">Constructors</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/TRTCCloud.html">TRTCCloud</a></li>


    <li class="section-title inherited">
      <a href="../../trtc_cloud/TRTCCloud-class.html#instance-properties">Properties</a>
    </li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/hashCode.html">hashCode</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/runtimeType.html">runtimeType</a></li>

    <li class="section-title"><a href="../../trtc_cloud/TRTCCloud-class.html#instance-methods">Methods</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/callExperimentalAPI.html">callExperimentalAPI</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/connectOtherRoom.html">connectOtherRoom</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/disconnectOtherRoom.html">disconnectOtherRoom</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/enableAudioVolumeEvaluation.html">enableAudioVolumeEvaluation</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/enableEncSmallVideoStream.html">enableEncSmallVideoStream</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/enterRoom.html">enterRoom</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/exitRoom.html">exitRoom</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/getAudioCaptureVolume.html">getAudioCaptureVolume</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/getAudioEffectManager.html">getAudioEffectManager</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/getAudioPlayoutVolume.html">getAudioPlayoutVolume</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/getBeautyManager.html">getBeautyManager</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/getDeviceManager.html">getDeviceManager</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/getSDKVersion.html">getSDKVersion</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/muteAllRemoteAudio.html">muteAllRemoteAudio</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/muteAllRemoteVideoStreams.html">muteAllRemoteVideoStreams</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/muteLocalAudio.html">muteLocalAudio</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/muteLocalVideo.html">muteLocalVideo</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/muteRemoteAudio.html">muteRemoteAudio</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/muteRemoteVideoStream.html">muteRemoteVideoStream</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/pauseScreenCapture.html">pauseScreenCapture</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/registerListener.html">registerListener</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/resumeScreenCapture.html">resumeScreenCapture</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/sendCustomCmdMsg.html">sendCustomCmdMsg</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/sendSEIMsg.html">sendSEIMsg</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/setAudioCaptureVolume.html">setAudioCaptureVolume</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/setAudioPlayoutVolume.html">setAudioPlayoutVolume</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/setConsoleEnabled.html">setConsoleEnabled</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/setDefaultStreamRecvMode.html">setDefaultStreamRecvMode</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/setGSensorMode.html">setGSensorMode</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/setLocalRenderParams.html">setLocalRenderParams</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/setLogCompressEnabled.html">setLogCompressEnabled</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/setLogDirPath.html">setLogDirPath</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/setLogLevel.html">setLogLevel</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/setMixTranscodingConfig.html">setMixTranscodingConfig</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/setNetworkQosParam.html">setNetworkQosParam</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/setRemoteAudioVolume.html">setRemoteAudioVolume</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/setRemoteRenderParams.html">setRemoteRenderParams</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/setRemoteVideoStreamType.html">setRemoteVideoStreamType</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/setVideoEncoderMirror.html">setVideoEncoderMirror</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/setVideoEncoderParam.html">setVideoEncoderParam</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/setVideoEncoderRotation.html">setVideoEncoderRotation</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/setVideoMuteImage.html">setVideoMuteImage</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/setWatermark.html">setWatermark</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/showDebugView.html">showDebugView</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/snapshotVideo.html">snapshotVideo</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/startAudioRecording.html">startAudioRecording</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/startLocalAudio.html">startLocalAudio</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/startLocalPreview.html">startLocalPreview</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/startLocalRecording.html">startLocalRecording</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/startPublishCDNStream.html">startPublishCDNStream</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/startPublishing.html">startPublishing</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/startRemoteView.html">startRemoteView</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/startScreenCapture.html">startScreenCapture</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/startSpeedTest.html">startSpeedTest</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/stopAllRemoteView.html">stopAllRemoteView</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/stopAudioRecording.html">stopAudioRecording</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/stopLocalAudio.html">stopLocalAudio</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/stopLocalPreview.html">stopLocalPreview</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/stopLocalRecording.html">stopLocalRecording</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/stopPublishCDNStream.html">stopPublishCDNStream</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/stopPublishing.html">stopPublishing</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/stopRemoteView.html">stopRemoteView</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/stopScreenCapture.html">stopScreenCapture</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/stopSpeedTest.html">stopSpeedTest</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/switchRole.html">switchRole</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/switchRoom.html">switchRoom</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/toString.html">toString</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/unRegisterListener.html">unRegisterListener</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/unregisterTexture.html">unregisterTexture</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/updateLocalView.html">updateLocalView</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/updateRemoteView.html">updateRemoteView</a></li>

    <li class="section-title inherited"><a href="../../trtc_cloud/TRTCCloud-class.html#operators">Operators</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/operator_equals.html">operator ==</a></li>


    <li class="section-title"><a href="../../trtc_cloud/TRTCCloud-class.html#static-properties">Static properties</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/listener.html">listener</a></li>

    <li class="section-title"><a href="../../trtc_cloud/TRTCCloud-class.html#static-methods">Static methods</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/destroySharedInstance.html">destroySharedInstance</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/getPlatformVersion.html">getPlatformVersion</a></li>
    <li><a href="../../trtc_cloud/TRTCCloud/sharedInstance.html">sharedInstance</a></li>

</ol>

  </div><!--/.sidebar-offcanvas-->

  <div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right">
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    tencent_trtc_cloud
      1.2.4
  </span>

  
</footer>



<script src="../../static-assets/highlight.pack.js?v1"></script>
<script src="../../static-assets/script.js?v1"></script>



</body>

</html>

